/**
 * achievement
 * 成绩管理
 */
export default [
  {
    path: "/Achievement",
    redirect: "/Achievement/standards",
    alwaysShow: true, // will always show the root menu
    name: "Achievement",
    meta: {
      title: "成绩管理",
      icon: "icon-chengjiguanli",
      roles: ["admin", "editor"], // you can set roles in root nav
    },
    children: [
      {
        path: "/Achievement/standards",
        component: () => import("@/views/Achievement/Standards.vue"),
        name: "standards",
        meta: {
          title: "成绩标准管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "/Achievement/studentscore",
        component: () => import("@/views/Achievement/Studentscore.vue"),
        name: "studentscore",
        meta: {
          title: "成绩单管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "/Achievement/examscore",
        component: () => import("@/views/Achievement/Examscore.vue"),
        name: "Examscore",
        meta: {
          title: "补考成绩管理",
          roles: ["admin"], // or you can only set roles in sub nav
          keepAlive: false
        },
      },
      // {
      //   path: "/Achievement/scoretemplate",
      //   component: () => import("@/views/Achievement/Scoretemplate.vue"),
      //   name: "scoretemplate",
      //   meta: {
      //     title: "成绩单模板管理",
      //     roles: ["admin"], // or you can only set roles in sub nav
      //   },
      // },
      {
        path: "/Achievement/scoredetail/:id?",
        component: () => import("@/views/Achievement/Scoredetail.vue"),
        name: "Scoredetail",
        meta: {
          title: "补考成绩详情 ",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true
      },
      {
        path: "/Achievement/achievementdetail/:id",
        component: () => import("@/views/Achievement/Achievementdetail.vue"),
        name: "achievementdetail",
        meta: {
          title: "成绩单详情",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true
      },
      {
        path: "/Achievement/printdetail/:id",
        component: () => import("@/views/Achievement/Printdetail.vue"),
        name: "printdetail",
        meta: {
          title: "打印详情",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true
      }, 
      {
        path: "/Achievement/student",
        component: () => import("@/views/Achievement/Student.vue"),
        name: "student",
        meta: {
          title: "学生成绩管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        // hidden: true,
      },
      {
        path: "/Achievement/gradetemplate",
        component: () => import("@/views/Achievement/Gradetemplate.vue"),
        name: "Gradetemplate",
        meta: {
          title: "成绩单模板管理",
          roles: ["admin"], // or you can only set roles in sub nav
        },
      },
      {
        path: "/Achievement/editgradetemplate",
        component: () => import("@/views/Achievement/Editgradetemplate.vue"),
        name: "Editgradetemplate",
        meta: {
          title: "修改成绩单模版",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "/Achievement/newgradetemplate",
        component: () => import("@/views/Achievement/Newgradetemplate.vue"),
        name: "Newgradetemplate",
        meta: {
          title: "新建成绩单模板",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "/Achievement/outgradetemplate",
        component: () => import("@/views/Achievement/OutGradetemplate.vue"),
        name: "OutGradetemplate",
        meta: {
          title: "打印成绩单模板",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true,
      },
      {
        path: "/Achievement/entergrades",
        component: () => import("@/views/Achievement/Entergrades"),
        name: "Entergrades",
        meta: {
          title: "录入学生成绩",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true
      },
      {
        path: "/Achievement/editstudentscore/:id",
        component: () => import("@/views/Achievement/Editstudentscore"),
        name: "Editstudentscore",
        meta: {
          title: "修改学生成绩",
          roles: ["admin"], // or you can only set roles in sub nav
        },
        hidden: true
      },
    ]
  },
];
